<template>
  <!--自定义组件-->
  <component :is="item.tag" :item="item" :data="data" v-if="item.type === 'custom'"></component>
  <!--ant-design组件-->
  <a-form-model-item :label="item.conf.label" v-else>
    <a-component :item="item" :data="data"></a-component>
  </a-form-model-item>
</template>

<script>
  export default {
    name: 'FormParser',
    props: {
      item: {},
      data: {},
    },
  };
</script>

<style scoped></style>
